package space.sakana.edusysback.entity.question.type;

import space.sakana.edusysback.emu.QuestionEnum;

public class EssayQuestion extends QuestionBase {
    private int id;
    private int qid;
    private int type = QuestionEnum.ESSAY_QUESTION.getQuestionInt();
    private String title;
    private int sid;
    private String answer;
    private int score;

    public EssayQuestion(int id, int qid, String title, int sid, String answer) {
        this.id = id;
        this.qid = qid;
        this.title = title;
        this.sid = sid;
        this.answer = answer;
    }

    public EssayQuestion(int qid, String title, int sid, String answer) {
        this.qid = qid;
        this.title = title;
        this.sid = sid;
        this.answer = answer;
    }

    public EssayQuestion(int id, int qid, String title, int sid) {
        this.id = id;
        this.qid = qid;
        this.title = title;
        this.sid = sid;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getQid() {
        return qid;
    }

    public void setQid(int qid) {
        this.qid = qid;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public int getSid() {
        return sid;
    }

    public void setSid(int sid) {
        this.sid = sid;
    }

    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }
}
